"""Provide GUI window display for MulticastCounter in Portal
"""

from synapse.platforms import *
from synapse.nvparams import *
import wx
import urllib

sum =0.0
count = 0
"""   
if platform != "Portal":
    compileError                    #script only valid on SM700
"""


def logEvent(data,ID):
  # ID =str(2)   
  #urllib.urlopen("http://api.swatbots.com/sensor/write?id="+str(ID)+'&data='+str(data))
  print(data,ID)
  #print(ID)
  
def logLDR(data,ID):  
  lux=0.0
  Lux=10.513*int(data) + 185.39
  #urllib.urlopen("http://api.swatbots.com/sensor/write?id="+str(ID)+'&data='+str(data))
  print(data,ID)
  #print(ID)
  